<?php
class RemoveFromGroup extends Action {
	/*
	 * (non-PHPdoc) @see Action::execute()
	 */
	public function execute($params) {
		$me = check_login ( ADMIN_LOGIN_PAGE );
		$uid = irqst ( 'uid' );
		$gid = irqst ( 'gid' );
		$where ['uid'] = $uid;
		$where ['gid'] = $gid;
		$guM = new CoreGroupUserModel ();
		$guM->delete ( $where );
		return new JsonView ( array ('success' => true ) );
	}
}